import Book from './../pages/book';
import Video from './../pages/video';
import Layout from './../pages/layout';
import vueBook from './../pages/Book/vue';
import reactBook from './../pages/Book/react';
import vueVideo from './../pages/Video/vue';
import reactVideo from './../pages/Video/react';

const routes = [
    {
        path: "/", component: Layout, routes: [
            {
                path: "/book", component: Book,  routes: [
                    { path: "/book/vue", component: vueBook, exact: true },
                    { path: "/book/react", component: reactBook, exact: true },
                ]
            },
            {
                path: "/video", component: Video,  routes: [
                    { path: "/video/vue", component: vueVideo, exact: true },
                    { path: "/video/react", component: reactVideo, exact: true },
                ]
            },
        ]
    },
    { path: "*", component: Book, exact: true },
]

export default routes;